//
//  SEGActivityLotteryPrizeModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/8/15.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGActivityLotteryPrizeModel.h"

@implementation SEGActivityLotteryPrizeModel

- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _prizeName = @"";
        _prizeType = @"";
        _prizeUnitValue = @"";
        _prizeId = @"";
        _prizePic = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setPrizeName:(NSString*)prizeName{
    _prizeName = [[SEGUtils ValueToString:prizeName]copy];
}
- (void)setPrizeType:(NSString*)prizeType{
    _prizeType = [[SEGUtils ValueToString:prizeType]copy];
}
- (void)setPrizeUnitValue:(NSString*)prizeUnitValue{
    _prizeUnitValue = [[SEGUtils ValueToString:prizeUnitValue]copy];
}
- (void)setPrizeId:(NSString*)prizeId{
    _prizeId = [[SEGUtils ValueToString:prizeId]copy];
}
- (void)setPrizePic:(NSString*)prizePic{
    _prizePic = [[SEGUtils ValueToString:prizePic]copy];
}

@end
